#
# Be sure to run `pod lib lint FGChatKit-pod.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FGChatKit-pod'
  s.version          = '1.3.2'
  s.summary          = '飞鸽传书访客聊天SDK'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/huangchangweng/fgchat-kit-pod'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'huangchangweng' => '599139419@qq.com' }
  s.source           = { :git => 'https://gitee.com/huangchangweng/fgchat-kit-pod.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.static_framework = true;

  s.vendored_frameworks = 'FGChatKit-pod/Classes/FGChatKit.framework'
  
  s.libraries = 'xml2', 'resolv', 'iconv'
  s.frameworks = 'CoreData', 'SystemConfiguration', 'CoreLocation',  'CoreTelephony',  'CFNetwork', 'Security', 'MobileCoreServices', 'CoreGraphics', 'UIKit', 'WebKit'
  s.xcconfig = {
    'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2 $(SDKROOT)/usr/include/libresolv',
  }
  s.swift_versions = ['5.5', '5.6', '5.7']

  # 排除arm64架构
  s.pod_target_xcconfig = {
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }
  s.user_target_xcconfig = {
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }
end
